from django.db import models

# Create your models here.
class Doctor(models.Model):
    id=models.AutoField(primary_key=True)
    uname=models.CharField(max_length=20,null=False)
    truename=models.CharField(max_length=20,null=False)
    pwd=models.CharField(max_length=32,null=False)

class Pres(models.Model):
    cname=models.CharField(max_length=60,null=False)
    result=models.CharField(max_length=100,null=False)
    doctor=models.ForeignKey(Doctor,on_delete=models.CASCADE)
    hname=models.CharField(max_length=30,null=False)